package ArrayLIst;

import java.util.Iterator;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lenovo
 * Date: 2022-07-30
 * Time: 21:06
 */
public class CardsTest {
    public static void main(String[] args) {
        CardDemo cardDemo = new CardDemo();
        List<Card> ret = cardDemo.getCards();
        System.out.println(ret);
        cardDemo.shuff(ret);
        System.out.println(ret);
        List<List<Card>> hands =cardDemo.deal(ret);
        Iterator it = hands.iterator();
        while (it.hasNext()){
            System.out.println(it.next());

        }
    }
}
